<div class='content'>
	<div id="content_wrapper">

		<div id="breadcrumbs">
			<div id="crumbs">
			<ul>
				<li>
				<img src="<?php echo base_url('application/views/images/weizhi.png');?>" alt="">
				系统管理
				</li>
				<li>配置管理</li>
				<li><a href="<?php echo base_url('admin/config/add');?>">添加配置</a></li>
			</ul>
			</div>
		</div>

		<div class="tb_list_wrapper">
			<table class="tr_wrapper">
				<tr>
					<th>ID</th>
					<th>名称</th>
					<th>描述</th>
					<th>内容</th>
					<th>操作</th>
				</tr>
				<?php if (isset($data)):?>
					<?php foreach ($data as $item):?>
						<tr>
							<td><?php echo $item['id'];?></td>
							<td><?php echo $item['name'];?></td>
							<td><?php echo $item['value'];?></td>
							<td><?php echo $item['description'];?></td>
							<td>
								<a href='<?php echo base_url("admin/config/edit?id=").$item["id"];?>'>修改</a>
								<a href='<?php echo base_url("admin/config/delete?id=").$item["id"];?>'  onclick="return confirm('删除这个配置？');">删除</a>
							</td>
						</tr>
					<?php endforeach; ?>
				<?php endif;?>		
			</table>

		</div>

	</div>
</div>
</body>
</html>